﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Share/Index.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
 
 <% 
     string s = (Request["s"] == null ? System.DateTime.Now.AddMonths(-1).ToString("yyyy-MM-dd") : Request["s"].ToString());
     string e = (Request["e"] == null ? System.DateTime.Now.ToString("yyyy-MM-dd") : Request["e"].ToString());
%>
<script language="javascript" type="text/javascript">
    $(function () {
        $("input[name=buttSeek]").click(function () {
            window.location.href = "/report/bookrankingreport.html?s=" + $("input[name=in_s]").val() + "&e=" + $("input[name=in_e]").val();
        });

    })
</script>

<div style="margin-top:20px;">
            <input type="text" class="date" size="15" name="in_s" value="<%=s %>" />
                至<input type="text" size="15" class="date" name="in_e" value="<%=e %>"  />
                <input type="button" name="buttSeek" value="查询" onclick="" class="btn1" />
</div>
   <table  id="mainTable" cellspacing="0">
   <caption>图书借阅排行榜</caption>
           <tr>
            <th>
                序号
            </th>
            <th>ISBN</th>
            <th>书籍名称</th>
            <th>借阅次数</th>
           </tr>
        <tbody name="mainlist">
        <%
            BIZ.ReportOper ro = new BIZ.ReportOper();
            IList li = ro.getBookRankingReport(s,e);
            int i = 1;
            foreach (Hashtable tb in li)
            {
        %>
        <tr>
        <td><%=i %></td>
        <td><%=tb["lbd_isbn"]%></td>
        <td><%=tb["lb_bookName"]%></td>
        <td><%=tb["jycs"]%></td>
        </tr>
        <% 
                i++;
            }    
        %>
        </tbody>
    </table>

</asp:Content>
